//
//  MTZHomeTableViewController.swift
//  weibomtz
//
//  Created by 毛铁柱 on 16/10/14.
//  Copyright © 2016年 mtz. All rights reserved.
//

import UIKit

class MTZHomeTableViewController: MTZVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

       
        
        if visitorView != nil {
            //设置内容
            visitorView?.setInfo(nil, message: "关注一些人，回这里看看有什么惊喜关注一些人，回这里看看有什么惊喜")
            // return 必须写上！！！！！！后果严重！！！！
            return
        }
        setUpUI()
    }
    
    private func setUpUI(){
        
//            UIBarButtonItem(image: <#T##UIImage?#>, style: <#T##UIBarButtonItemStyle#>, target: <#T##AnyObject?#>, action: <#T##Selector#>)
//
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(imgNamed:"navigationbar_friendsearch",target: nil,action: "" )
        navigationItem.rightBarButtonItem = UIBarButtonItem(imgNamed: "navigationbar_pop",target: self,action: "pop" )
    
    }
    
    @objc private func pop(){
    print("哈哈")
        let vc = MTZTempViewController()
        navigationController?.pushViewController(vc, animated: true)
        
        
        
    
    }
}